using System;
using System.Collections.Generic;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using NHibernate.Criterion;
using NHibernate.Example.Web;
using log4net;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        /*
        var session = ExampleApplication.GetCurrentSession();

        var cmc = session.CreateMultiCriteria();
        cmc.Add<Item>(
                    session.CreateCriteria<Item>().Add(Restrictions.Eq("Price", 100M))
             );
        cmc.Add<Item>(
            session.CreateCriteria<Item>().Add(Restrictions.Gt("Price", 11M))
            );
        var values = cmc.List();

        var value0 = values[0] as IList<Item>;
        var value1 = values[1] as IList<Item>;

        Response.Write(value0.Count);

        Response.Write("<br />");

        Response.Write(value1.Count);

        Response.Write("<br />");

        var value2= session.CreateCriteria<Item>().Add(Restrictions.Eq("Price", 100M)).List<Item>();
        Response.Write(value2.Count);
         * */

        var session = ExampleApplication.GetCurrentSession();
        

    }
}
